package uk.ac.bath.domains.prey;

import uk.ac.bath.base.MachineIF;


public class PreyCell extends BasicCell {

    

    public PreyCell(MachineIF machine,
            MyPoint point,
            String tag) {
        super(machine, point, tag,0.0);
        vel=0.1f;
        dir.randomDirection();
//        if (point != null) {
//            this.prevPoint = (Point) (point.clone());
//        }
    }


 
    public void preMachineTick(MachineIF machine) {

        if (collided) {
            dir.randomDirection();
            collided=false;
        }

    }

    @Override
    protected void postMachineTick( MachineIF machine) {
        
    }

}




